<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <rich:panel>
        <f:facet name="header">Detalle del ajuste por bodega</f:facet>

        <s:decorate id="ajuCodigo" template="layout/display.xhtml">
            <ui:define name="label">Aju codigo</ui:define>
            <h:outputText value="#{invAjusteHome.instance.ajuCodigo}"/>
        </s:decorate>

        <s:decorate id="ajuDocumento" template="layout/display.xhtml">
            <ui:define name="label">Aju documento</ui:define>
            <h:outputText value="#{invAjusteHome.instance.ajuDocumento}"/>
        </s:decorate>

        <s:decorate id="ajuFecha" template="layout/display.xhtml">
            <ui:define name="label">Aju fecha</ui:define>
            <h:outputText value="#{invAjusteHome.instance.ajuFecha}">
                <s:convertDateTime type="date" dateStyle="short"/>
            </h:outputText>
        </s:decorate>

        <s:decorate id="ajuObservacion" template="layout/display.xhtml">
            <ui:define name="label">Aju observacion</ui:define>
            <h:outputText value="#{invAjusteHome.instance.ajuObservacion}"/>
        </s:decorate>

        <s:decorate id="ajuTipo" template="layout/display.xhtml">
            <ui:define name="label">Aju tipo</ui:define>
            <h:outputText value="#{invAjusteHome.instance.ajuTipo}"/>
        </s:decorate>

        <s:decorate id="ajuValor" template="layout/display.xhtml">
            <ui:define name="label">Aju valor</ui:define>
            <h:outputText value="#{invAjusteHome.instance.ajuValor}">
                <f:convertNumber/>
            </h:outputText>
        </s:decorate>

        <s:decorate id="depCodigo" template="layout/display.xhtml">
            <ui:define name="label">Dep codigo</ui:define>
            <h:outputText value="#{invAjusteHome.instance.depCodigo}"/>
        </s:decorate>

        <s:decorate id="subdepCodigo" template="layout/display.xhtml">
            <ui:define name="label">Subdep codigo</ui:define>
            <h:outputText value="#{invAjusteHome.instance.subdepCodigo}"/>
        </s:decorate>

        <div style="clear:both"/>

    </rich:panel>

    <div class="actionButtons">

        <s:button view="/InvAjusteEdit.xhtml"
                    id="edit"
                 value="Edit"/>

        <s:button view="/#{empty invAjusteFrom ? 'InvAjusteList' : invAjusteFrom}.xhtml"
                    id="done"
                 value="Done"/>

    </div>

    
</ui:define>

</ui:composition>
